package com.atguigu.java.ai.langchain4j;

import com.atguigu.java.ai.langchain4j.assistant.DuFuAssistant;
import dev.langchain4j.community.model.dashscope.QwenChatModel;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class testDufu {
    @Autowired
    private DuFuAssistant duFuAssistant;
    @Test
    public void test() {
        String chat = duFuAssistant.chat("请你以家国为中心，写一首七言绝句");
        System.out.println(chat);
        String chat1 = duFuAssistant.chat("请你评价一下你写的这首诗");
        System.out.println(chat1);
    }

}
